package com.date;

/**
 * @Description: Java java.sql.Timestamp类使用
 */
public class TimestampDemo {
    public static void main(String[] args) {

        java.sql.Timestamp timestamp = new java.sql.Timestamp(System.currentTimeMillis());
        System.out.println("现在的时间: " + timestamp);//现在的时间
    }
}
